home account info subscribe login search FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Bug Proofing Visual Basic: A Guide to Error Handling and Prevention
(Publisher: John Wiley & Sons, Inc.)
Author(s): Rod Stephens
ISBN: 0471323519
Publication Date: 11/01/98

Search this book:
 
Previous Table of Contents Next


Summary

The following Bug Stoppers summarize the design guidelines described in this chapter. Following them throughout a project’s design and development can reduce bugs and the amount of work you must perform to produce a finished application.

BUG STOPPERS: development
Design for uniformity, simplicity, and elegance.
Avoid creeping featuritis and bells and whistles disease.
Start with minimal functionality.
Avoid the not invented here syndrome.
Avoid the bleeding edge.
Avoid third-party products.
Optimize design, not small pieces of code.
Defer optimization.
Indent consistently.
Remove or assert assumptions.
Assert or Stop for invalid situations.
Raise errors for valid but exceptional situations.
Use Enums for status codes.
Return the worst data possible for errors.
Don’t use one input variable for multiple purposes.
Don’t use one output variable for multiple purposes.
Keep separate tasks separate.
Examine decision points closely.
Use FreeFile to obtain unused file numbers.
Use ByVal whenever possible to prevent confusing side effects.
Separate debug and nondebug code.


Previous Table of Contents Next


Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-1999 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permision of EarthWeb is prohibited.